package cn.db101.jcc.controller;

import cn.db101.jcc.entity.Lineup;
import cn.db101.jcc.entity.User;
import cn.db101.jcc.model.ResultModel;
import cn.db101.jcc.service.LineupService;
import cn.db101.jcc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zooy
 * @create 2024-06-11 1:40
 * @description
 */
@RestController
@RequestMapping("v1/jcc/user")
public class UserController {

    @Autowired
    private UserService userService;

    @PostMapping("update/avatar")
    public ResultModel updateAvatar(@RequestBody User user) {

        userService.updateAvatar(user);
        return ResultModel.success();
    }

}
